package com.swh;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class UserCloudConfigClientApplication {
	
	private static final Logger logger = LoggerFactory.getLogger(UserCloudConfigClientApplication.class);
	
	@Autowired
	void setEnvironment(Environment env) {
		logger.info(">>>> my-config.appName from env: " + env.getProperty("my-config.appName"));
	}

	public static void main(String[] args) {
		SpringApplication.run(UserCloudConfigClientApplication.class, args);
	}
}
